.class public final Lnbisdk/ca;
.super Ljava/lang/Object;


# instance fields
.field private dp:Lnbisdk/rv;

.field private dq:Lnbisdk/at;

.field public name:Ljava/lang/String;


# direct methods
.method public constructor <init>(Lnbisdk/fk;)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Lnbisdk/rv;

    const-string v1, "address"

    invoke-static {p1, v1}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v1

    invoke-direct {v0, v1}, Lnbisdk/rv;-><init>(Lnbisdk/fk;)V

    iput-object v0, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    new-instance v0, Lnbisdk/at;

    const-string v1, "point"

    invoke-static {p1, v1}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v1

    invoke-direct {v0, v1}, Lnbisdk/at;-><init>(Lnbisdk/fk;)V

    iput-object v0, p0, Lnbisdk/ca;->dq:Lnbisdk/at;

    const-string v0, "name"

    invoke-static {p1, v0}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/ca;->name:Ljava/lang/String;

    return-void
.end method

.method public static d(Lnbisdk/fk;)Lnbisdk/np;
    .locals 4

    const/4 v0, 0x0

    const-string v1, "location"

    invoke-static {p0, v1}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v1

    if-eqz v1, :cond_0

    new-instance v0, Lnbisdk/ca;

    invoke-direct {v0, v1}, Lnbisdk/ca;-><init>(Lnbisdk/fk;)V

    invoke-virtual {v0}, Lnbisdk/ca;->bR()Lnbisdk/so;

    move-result-object v0

    :cond_0
    const-string v1, "incomplete"

    invoke-static {p0, v1}, Lnbisdk/ij$a;->e(Lnbisdk/fk;Ljava/lang/String;)Z

    move-result v1

    sget-byte v2, Lnbisdk/np;->tp:B

    const-string v3, "accuracy"

    invoke-virtual {p0, v3}, Lnbisdk/fk;->U(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    const-string v2, "accuracy"

    invoke-static {p0, v2}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v2

    long-to-int v2, v2

    int-to-byte v2, v2

    :cond_1
    new-instance v3, Lnbisdk/np;

    invoke-direct {v3, v0, v2, v1}, Lnbisdk/np;-><init>(Lnbisdk/so;BZ)V

    return-object v3
.end method


# virtual methods
.method public final bR()Lnbisdk/so;
    .locals 5

    new-instance v0, Lnbisdk/so;

    invoke-direct {v0}, Lnbisdk/so;-><init>()V

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lnbisdk/so;->setType(I)V

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yJ:Ljava/lang/String;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yJ:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_1

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lnbisdk/so;->setType(I)V

    :cond_0
    :goto_0
    iget-object v1, p0, Lnbisdk/ca;->name:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lnbisdk/so;->setAreaName(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yH:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lnbisdk/so;->setAddress(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yI:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lnbisdk/so;->setStreet(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yJ:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lnbisdk/so;->setCrossStreet(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yK:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lnbisdk/so;->setCity(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yL:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lnbisdk/so;->setCounty(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->ru:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lnbisdk/so;->setState(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yM:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lnbisdk/so;->setPostal(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yN:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lnbisdk/so;->setCountry(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yO:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lnbisdk/so;->setAirport(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/ca;->dq:Lnbisdk/at;

    iget-wide v1, v1, Lnbisdk/at;->bC:D

    iget-object v3, p0, Lnbisdk/ca;->dq:Lnbisdk/at;

    iget-wide v3, v3, Lnbisdk/at;->bD:D

    invoke-virtual {v0, v1, v2, v3, v4}, Lnbisdk/so;->updateLatLon(DD)V

    return-object v0

    :cond_1
    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yO:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lnbisdk/ca;->dp:Lnbisdk/rv;

    iget-object v1, v1, Lnbisdk/rv;->yO:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Lnbisdk/so;->setType(I)V

    goto :goto_0
.end method
